package com.jinlia.show.modules.system.controller.common;

import com.jinlia.show.common.core.utils.MybatisIdGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("id")
public class IdController {

    @Autowired
    MybatisIdGenerator mybatisIdGenerator;

    @GetMapping
    public Long getId() {
        return mybatisIdGenerator.nextId();
    }
}
